<?php
include "includeFiles.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link charset="utf-8" rel="stylesheet" href="css/alipay.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script type="text/javascript">
<!--

$(document).ready(function(){
	//$(".mh_zx_ct:gt(0)").hide();
	var opt=$(".mh_zx_box ul li");
	opt.hover(function(){
		//alert($(this));
		$(this).addClass('one').siblings().removeClass('one');
		var opt_index=opt.index(this);
		$(".mh_zx_ct").eq(opt_index).show().siblings().hide();
	});
	$(".nav_green").mouseover(function(){
		$("#nav_more").show();
	}).mouseout(function(){
		var timer=window.setTimeout(function(){
			$("#nav_more").hide();	
		},1000)
		$(".nav_green li").mouseover(function(){
			window.clearTimeout(timer);
			//$("#nav_more").show();
		})
	})
	$(".nav_green li").mouseout(function(){
		$("#nav_more").hide();	
	})

});
//-->
</script> 
</head>
<body id="mainbody">
<?php include_once('header.php');?>

<!--#头部导航-->

<!--主体布局-->
<div class="main">
  <div class="sc_box">
<ul class="Position">
            <li class="w">1 我的购物车</li>
            <li>2 确认订单信息</li>
            <li>3 成功提交订单</li>
        </ul>
        <div class="clr">
        </div>
    </div>
  
    <!--内容-->
    <div class="middle">
        <!--收货人信息-->
        <div class="message">
            <h3 class="message_h3">
                收货人信息</h3>
            <a class="message_a" style="" id="updateaddressbutton" onclick="getaddresslist();">
                [修改]</a> <a class="message_a" style="display: none;" id="cancladdressbutton" onclick="loadorderdata();">
                    [取消修改]</a>
        </div>
        <span class="blankline"></span>
      <div id="addresseeinfo"><div class="message_content">
        <p class="p_message">收&nbsp;货&nbsp;人：xxx</p>
        <p class="p_message"><span class="psadd">配送地址：</span><span class="txtP">xxxxx</span></p><p class="p_message">邮政编码：516001</p><p class="p_message">联系方式：1111111</p></div></div>
        <span class="block24"></span>
      <div class="message">
            <h3 class="message_h3">
                配送方式</h3>
            <a class="message_a" style="" id="updatetransferbutton" onclick=" getdefaulttransfer(true);">
                [修改]</a> <a class="message_a" style="display: none;" id="cancltransferbutton" onclick="loadtransfer();">
                    [取消修改] </a><span id="updateaddresseeinfo" class="span_yellow1" style="display: none;">
                        <img title="由于您更改了收货地址，请重新确认配送方式" src="horn.jpg">由于您更改了收货地址，请重新确认配送方式</span>
        </div>
        <span class="blankline"></span>
      <div id="transferinfo" class="display_line"><div class="message_content"><p class="p_message">配送方式：快递</p><p class="p_message">配送时间：只工作日送货（双休日、假日不用送）（注：写字楼 / 商用地址客户请选择）</p><p class="p_message">配送费用：<span id="transferpay" class="red">0</span>元<span id="transferpayinfo"> （您目前享受免运费优惠)</span></p></div></div>
        <span class="block24"></span>
      <div class="message" id="bank_card_head">
            <h3 class="message_h3">
                支付方式</h3>
                
            <a class="message_a" id="updatepaymentbutton" style="" onclick="showpaymentlist(true);">
                [修改]</a> <a class="message_a" id="canclpaymentbutton" style="display: none" onclick="loadpayment();">
                    [取消修改] </a>
                     <font color="#f38f00">（部分品牌选择在线支付享受9.8折或更多优惠，优惠请以参加活动商品单品页提示为准。）</font>
                    <span id="updatetransferinfo" class="span_yellow1" style="display: none;">
                        <img title="由于您更改了配送方式，请重新确认支付方式" src="horn.jpg">由于您更改了配送方式，请重新确认支付方式</span>
        </div>
        <span class="blankline"></span>
      <div id="paymentinfo" class="message_content"><p class="p_message">支付方式：<span id="paymenttype">货到付款</span></p></div>
        <!-- 订单表-->
        
    </div>
    <!--底部--> 
   
   
   
    <!--商品售完提示-->
    <div class="sc_box" id="notify_a" style="display: none;">
        <div class="notify_ii" id="notify_b">
            抱歉！有商品已售空，暂时不能购买。<b id="notify_close"><img alt="" src="arr_u.gif"></b></div>
        <div class="notify_listBox" id="notify_d"><p>已售空不能购买的商品将在您结算时自动删除 <a href="javascript:void(0);" id="i_know">我知道了</a></p></div>
    </div>
    <div class="clr">
    </div>
    <!--我购买的商品-->
    <div class="sc_box" id="myshopcar" style="">
        <div class="my_shop">
            <!--我的购物车标题行-->
            <ul>
                <li class="n">商品名称</li>
                <li class="w200">所获积分</li>
                <li class="w201">价格</li>
                <li class="w202">下单时间</li>
            </ul>
                  <?
			 $result =  $info->getCartList();
			 if($result){
			  foreach($result as $key=>$value){
			  ?>
        <div class="listBox <?php if($key % 2 == 0) echo 'gray';?>">
          <div class="i"><img style="border: 1px solid rgb(237, 237, 237); margin: 1px;" src="images/pro2_10.jpg"></div>
          <dt><?=$value['productName']?><br />
            <?=$value['SubName']?>
          <dd class="w200"><? echo $value['price'];?></dd>
          <dd class="w170"><? echo $price = $value['price']; $total = $price ++;?></dd>
          <dd class="w170"><?=date("Y-m-d",$value['createdate'])?></dd>
          <div class="clr"></div>
        </div>
        <? }}?>
            
            </div>
            <!--购物操作-->
            <div class="total">
                <div class="fr">
                    优惠金额：<em>￥</em><b id="pdiscount">30.00</b> &nbsp;&nbsp;商品金额总计：<em>￥</em><b id="productprice"><?=$total?></b>
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="NextStep_box">
                <div class="empty">
                    <a href="javascript:void(0);">清空购物车</a>
                    <div class="delcommodity" id="emptyDiv" style="left: -10px; top: -66px;">
                        您确定要清空吗？<br>
                        <a href="javascript:clearcart();">确定</a>&nbsp;&nbsp;<a href="javascript:void(0);">取消</a></div>
                </div>
                <div class="fr">
                    <a href="index.php" title="继续购物" class="shoping"></a><a href="forpay.php" title="去结算" class="pay" id="jiesuanBtn"></a>
                </div>

              <div class="gehang"></div>
            </div>
        </div>
    </div>
<div class="gehang"></div>

  <?php include_once('help.php');?>
        <img src="images/copy_line.jpg" />
        </div>
    </div>
<!--#主体布局-->

<div class="clear"></div>
    <!--页底版权-->
   <?php include_once('footer.php');?>
<!--#回到顶部-->
</body>
</html>
